package com.gjzhao.fmmall.config;

import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description: 注入第三方对象
 * @Author: gjzhao
 * @Date Created in 2022-01-26 9:43 上午
 */
@Configuration
public class BeanConfig {


    // 注入 objectMapper 对象，用于json字符串与对象之间转换
    @Bean
    public ObjectMapper getObjectMapper() {
        return new ObjectMapper();
    }

}
